﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class PedlarNPC:NPCfather
    {
        private string wuqi;
        private string cailiao;
        private string shiwu;
        public string Wuqi
        {
            get { return this.wuqi; }
            set { this.wuqi = value; }
        }
        public string Cailiao
        {
            get { return this.cailiao; }
            set { this.cailiao = value; }
        }
        public string Shiwu
        {
            get { return this.shiwu; }
            set { this.shiwu = value; }
        }
        public PedlarNPC(string name, NPC npc, string wuqi, string cailiao, string shiwu): base(name, npc)
        {
            this.wuqi = wuqi;
            this.shiwu = shiwu;
            this.cailiao = cailiao;

        }
        public override void Speak()
        {
            Console.WriteLine("NPC{0},卖{1},卖{2},卖{3}",this.Name,this.Shiwu,this.Wuqi,this.Cailiao);
        }
    }
}
